projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5531da
)
GtkRadioButton: Allow setting group more than once
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 3 Oct 2014 03:37:38 +0000
(23:37 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 3 Oct 2014 03:37:38 +0000
(23:37 -0400)
It turns out that GtkBuilder will sometimes set a property
twice. Normally, this is harmless, but for GtkRadioButton:group,
it triggered a critical. Remove that.
gtk/gtkradiobutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkradiobutton.c
b/gtk/gtkradiobutton.c
index f61a361e151a70e1888e16918b554c0f1337aadc..9bfc83c162f2a4fd6d2f806fef8cf63d26e66163 100644
(file)
--- a/
gtk/gtkradiobutton.c
+++ b/
gtk/gtkradiobutton.c
@@
-275,7
+275,9
@@
gtk_radio_button_set_group (GtkRadioButton *radio_button,
GtkWidget *new_group_singleton = NULL;
g_return_if_fail (GTK_IS_RADIO_BUTTON (radio_button));
- g_return_if_fail (!g_slist_find (group, radio_button));
+
+ if (g_slist_find (group, radio_button))
+ return;
priv = radio_button->priv;